package lab.jsp;

import java.io.IOException;
import java.rmi.RemoteException;
import java.util.Collection;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lab.bmp.artist.Artist;

/**
 *
 * @author Smike
 */
public class Artists extends AbstractJSP<Collection<Artist>> {

    @Override
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // do nothing, it's will be implemented by JSP
    }

    @Override
    protected Collection<Artist> getData() {
        try {
            return dao.findArtists();
        } catch (RemoteException ex) {
            throw new RuntimeException(ex);
        }
    }

}
